Update test-loader-registration to use a new instance of GPluginManager
This avoids using private API and fixes the build on Windows.
Testing Done:
Ran the tests under an msys2 mingw64 shell without issue.
Reviewed at https://reviews.imfreedom.org/r/3025/