fixes to create_lock, minimize verbose debugging