[libvirt] [PATCHv2 4/4] qemu: avoid closing fd more than once