qemu: fix one more race on undefining and create
qemu: fix one more race on undefining and create

[1] closes gap in virDomainObjListRemove so that concurrent thread can
not step in and obtain the domain while domain is temporary unlocked. But
there is another gap exist:

thread B - executes create API
thread C - executes undefine API

- thread A executes some job on domain
- threads B and C obtains domain from list and wait for job condition
- thread A finishes its job and C grabs job condition, removes domain
  from list and finishes
- thread B grabs job condition and start the domain, unfortunately
  is not in the list already

[1] commit c7d1c139ca3402e875002753952e80ce8054374e
Author: Martin Kletzander <e82f23e74d43760279ebcc505dac4ae70d5627d0@redhat.com>
Date:   Thu Dec 11 11:14:08 2014 +0100

    qemu: avoid rare race when undefining domain

Signed-off-by: Nikolay Shirokovskiy <7fa0e2698a05be944b362bdf5d7736c0162e16c9@openvz.org>
Reviewed-by: Martin Kletzander <e82f23e74d43760279ebcc505dac4ae70d5627d0@redhat.com>

zippy2/libvirt,jfehlig/libvirt,crobinso/libvirt,jfehlig/libvirt,zippy2/libvirt,libvirt/libvirt,crobinso/libvirt,olafhering/libvirt,crobinso/libvirt,libvirt/libvirt,zippy2/libvirt,jfehlig/libvirt,libvirt/libvirt,olafhering/libvirt,zippy2/libvirt,libvirt/libvirt,olafhering/libvirt,jfehlig/libvirt,crobinso/libvirt,olafhering/libvirt