CA-85940: avoid spinning in the cancel_test
CA-85940: avoid spinning in the cancel_test

It will suffice to check for state stabilisation every 1s or so.
We could eventually convert this to use events from xen, xenops
and xapi but it would be a lot more code for little return.

Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@eu.citrix.com>

djs55/squeezed,johnelse/xcp-rrdd,djs55/xcp-networkd,koushikcgit/xcp-rrdd,simonjbeaumont/xcp-rrdd,djs55/xcp-rrdd,djs55/xcp-networkd,sharady/xcp-networkd,koushikcgit/xcp-networkd,simonjbeaumont/xcp-rrdd,koushikcgit/xcp-networkd,koushikcgit/xcp-rrdd,djs55/xcp-rrdd,sharady/xcp-networkd,robhoes/squeezed,koushikcgit/xcp-rrdd,johnelse/xcp-rrdd