ref_get()/ref_put() use atomic gcc operations if supported, thanks to Thomas Jarosch...