check study lock before deleting a file