glib2's gobject subsystem is essentially a wrapper for dlopen. In
view of comments in PR lib/49791 which can be summarised as
"RTLD_GLOBAL is a bug", make gobject use RTLD_DEFAULT instead.
This should fix PR pkg/56212
The upstream merge request
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2171
has been updated - feel free to add a description of the problems you
experienced without this patch to it.