[libvirt] [PATCH 2/6] domain_event: Add common domain event queue/flush helpers