[libvirt] [PATCH 1/2] Introduce virCheckFlags for consistent flags checking