[libvirt] [PATCHv2 4/7] tests: avoid data race