Update test-loader-registration to use a new instance of GPluginManager
Review Request #3025 — Created March 12, 2024 and submitted — Latest diff uploaded
This avoids using private API and fixes the build on Windows.
Ran the tests under an msys2 mingw64 shell without issue.