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