Moved lock_ptr to memory.hpp.