tests: Fix qemumonitorjsontest deadlock when the machine is under load
tests: Fix qemumonitorjsontest deadlock when the machine is under load

https://bugzilla.redhat.com/show_bug.cgi?id=951227

When doing the qemumonitorjsontest on a machine under heavy load the
test tends to deadlock from time to time. This patch adds the hack to
break the event loop that is used in virsh.
(cherry picked from commit e25a32f3da801207a5009c12747f3d155ac4c43a)

mithleshvrts/libvirt-0.10.2,mithleshvrts/libvirt-0.10.2,mithleshvrts/libvirt-0.10.2,mithleshvrts/libvirt-0.10.2,mithleshvrts/libvirt-0.10.2