trivial: Fix warning in the profiling code where refine was being run under multiple threads
Ignore multiple pkgname tags in AppStream metadata

This is a spec extension that will be used by font add-ons soon.
Match the AppStream ID when searching

This allows us to specify webapps exactly from the command line, and also helps
with applications with names like like '0ad'.