proper atomics for mem_mget()/mem_mput()