libpkgconf: fragment: add pkgconf_fragment_filter() to selectively copy a fragment list using a filter function