pkg: add pkg_comparator_lookup_by_name().