fn prune_other_versions_in( root: &Path, keep: &str, sole_instance: &(dyn Fn() -> bool + Sync), ) -> Vec<PathBuf>