[libvirt PATCH 2/2] util: avoid crash due to race in glib event loop code