[libvirt] [PATCH v2] tests: fix segfault in objecteventtest