mainloop: implement gio_poll_dispatch_mod

libqb may need to modify the events or dispatch function for a
previously-added poll source.

(Note: this commit will be required if https://github.com/ClusterLabs/libqb/pull/123 is merged into libqb.)