libsoup: optional gobject-introspection

Closes #26844.