pub fn diff(old: &LockFile, new: &LockFile) -> LockDiff
Compare two locks. Neither is modified; entries are matched by artifact UUID and media type, so a new revision shows as a change, not as a removal plus an addition.