pub(super) fn try_lock_exclusive(file: &File) -> Result<()>