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