qemu: Split up qemuDomainRemoveInactive
qemu: Split up qemuDomainRemoveInactive

Introduce qemuDomainRemoveInactiveJobCommon to handle what will
be the common parts of the code with a new function that will
be used to call virDomainObjListRemoveLocked instead of the
unlocked variant.

Signed-off-by: Wang Yechao <d156c2278b59b97b85e8218b42611783bb8435e2@zte.com.cn>
Reviewed-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>

nertpinx/libvirt,jardasgit/libvirt,libvirt/libvirt,fabianfreyer/libvirt,zippy2/libvirt,crobinso/libvirt,jfehlig/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,olafhering/libvirt,nertpinx/libvirt,andreabolognani/libvirt,libvirt/libvirt,fabianfreyer/libvirt,eskultety/libvirt,andreabolognani/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,eskultety/libvirt,zippy2/libvirt,crobinso/libvirt,crobinso/libvirt,eskultety/libvirt,andreabolognani/libvirt,jardasgit/libvirt,libvirt/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,eskultety/libvirt,olafhering/libvirt,crobinso/libvirt,jfehlig/libvirt,jardasgit/libvirt,olafhering/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,jardasgit/libvirt,eskultety/libvirt,zippy2/libvirt