Deletes unnecessary lock file