pub fn path_lock(path: &Path) -> Result<RwLock<File>>
Create an advisory lock over the given path.
See [fd_lock_path] for details.