gs-plugin-loader: Convert app_create()/get_system_app() into async methods

These call refine, which can mean I/O calls on the calling thread,
which is, in some situations, the main/GUI thread, thus it could
block the application in certain cases. Doing the calls in a dedicated
thread helps to avoid application freeze.

Closes #1276
3 jobs for 1276-software-became-unresponsive-while-updating-flatpaks in 4 minutes and 52 seconds (queued for 4 seconds)