[libvirt PATCH 4/6] qemu: refactor virQEMUCapsNewCopy