Added a new lock specific to deleting, and improved safety