CP-8784: Replace Thread.delay with Mutex/Condition
CP-8784: Replace Thread.delay with Mutex/Condition

Signed-off-by: Si Beaumont <a0992b7f1f450b4c7716d34b81a2d6f0877ae11a@citrix.com>

johnelse/xenopsd,simonjbeaumont/xenopsd,thomassa/xenopsd,djs55/xenopsd,thomassa/xenopsd,euanh/xenopsd,thomassa/xenopsd,koushikcgit/xenopsd,euanh/xenopsd,djs55/xenopsd,simonjbeaumont/xenopsd,simonjbeaumont/xenopsd,cheng--zhang/xenopsd,koushikcgit/xenopsd,euanh/xenopsd,cheng--zhang/xenopsd,koushikcgit/xenopsd,johnelse/xenopsd,johnelse/xenopsd,cheng--zhang/xenopsd,djs55/xenopsd