Added mutex_mgr to attempt_delete and delete_whole_array