lock before sleeping