[libvirt PATCH 1/6] tests: qemu: reduce scope of some variables