Delete MAIN_WRITELOCK