Properly delete lock