fix file_is_locked