[libvirt] [PATCH 4/8] domain_event: Add common domain event queue/flush helpers