Clean up main context channel code and ensure that the callback is always released from the correct thread
Clean up main context channel code and ensure that the callback is always released from the correct thread

rust-gnome/glib