pub fn with_file_lock<F, R>(file_path: &Path, operation: F) -> Result<R>where F: FnOnce() -> Result<R>,
Execute an operation with file locking protection