[libvirt] [PATCH] Fix crash when multiple event callbacks were registered