pub fn lock_exclusive(file: &File) -> Result<()>
Acquires an exclusive process-held lock, blocking until it becomes available.