[libvirt] [PATCH v2 3/6] qemu: move virQEMUCapsIsValid before its usage and make it static