pub fn write(root: &Path, lock: &Lock) -> Result<()>
Write drft.lock atomically (temp file + rename).
drft.lock