fn lock( locked: &HashMap<(SourceId, InternedString), Vec<(PackageId, Vec<PackageId>)>>, patches: &HashMap<CanonicalUrl, Vec<PackageId>>, summary: Summary ) -> Summary