pub fn locked_write_line(path: impl AsRef<Path>, line: &str) -> Result<()>
Writes a line in an exclusive locked file.