ensure locking the object when copying its data

another thread might be evicting it