glib: make gio-module-dir global

Fixes #18701.