Fix threading/main context behaviour of rpm-ostree plugin
See the commit messages and #1091 (comment 971358) for details.
I have checked that this compiles, but since I don’t use an rpm-ostree system, I can’t test it. @mcrha, do you use Silverblue?
Fixes #1091 (closed)
Edited by Philip Withnall