qemu: implement driver's shutdown/shutdown wait methods
qemu: implement driver's shutdown/shutdown wait methods

On shutdown we just stop accepting new jobs for worker thread so that on
shutdown wait we can exit worker thread faster. Yes we basically stop
processing of events for VMs but we are going to do so anyway in case of daemon
shutdown.

At the same time synchronous event processing that some API calls may require
are still possible as per VM event loop is still running and we don't need
worker thread for synchronous event processing.

Signed-off-by: Nikolay Shirokovskiy <7fa0e2698a05be944b362bdf5d7736c0162e16c9@virtuozzo.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>
Reviewed-by: Daniel Henrique Barboza <627b089ad62deae9aaf06ccfa2c9056df28927e0@gmail.com>

libvirt/libvirt,nertpinx/libvirt,olafhering/libvirt,olafhering/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,nertpinx/libvirt,crobinso/libvirt,olafhering/libvirt,jfehlig/libvirt,jardasgit/libvirt,libvirt/libvirt,zippy2/libvirt,crobinso/libvirt,jardasgit/libvirt,jardasgit/libvirt,libvirt/libvirt,zippy2/libvirt,jfehlig/libvirt,olafhering/libvirt,crobinso/libvirt,jfehlig/libvirt,crobinso/libvirt,jardasgit/libvirt,nertpinx/libvirt,nertpinx/libvirt,libvirt/libvirt,jardasgit/libvirt,zippy2/libvirt