pub fn write_lock(u: &PackageUniverse) -> PathBuf
Write the lock file into the package root; returns its path.