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