flatpak: Fix race condition when loading a flatpakref file

We'd have different behaviours depending on how far ahead is the initialisation. Use our own infrastructure rather than flatpak's to get what we are loading..

BUG: 486057

Merge request reports

Loading