Scoped unlock

Renamed unlock_the_lock to scoped_unlock