The upstream bug has been resolved as fixed in 2.23 and if I understand it correctly, the same feature that's used by bamf is now implemented via dbus signals. Would it be possible to use those instead?
Patching GIO means most distributions (read: any other than ubuntu and arch via the AUR maybe) will never ship bamf.