pub fn new_lock(lock_path: impl AsRef<Path>) -> RwLock<File>
Creates a new lock file at the given path.