[libvirt] [PATCH v2 09/31] qemu: Refactor virQEMUCapsCacheLookup