sleep outside of the lock