Add a helper for running blocking libvirt calls in a background thread

Signed-off-by: David Scott <dave.scott@eu.citrix.com>