vmware: Use virDomainObjListFindBy{UUID|ID}Ref
vmware: Use virDomainObjListFindBy{UUID|ID}Ref

For vmwareDomObjFromDomainLocked and vmwareDomainLookupByID
let's return a locked and referenced @vm object so that callers
can then use the common and more consistent virDomainObjEndAPI
in order to handle cleanup rather than needing to know that the
returned object is locked and calling virObjectUnlock.

The LookupByName already returns the ref counted and locked object,
so this will make things more consistent.

For vmwareDomainUndefineFlags and vmwareDomainShutdownFlags since
virDomainObjListRemove will return an unlocked object, we need to
relock before making the EndAPI call.

Signed-off-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>
Reviewed-by: Pavel Hrdina <d4772d05997b8abf035041e3b4f4996380ea7e7a@redhat.com>

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