nodedev: Introduce virNodeDeviceObjNew
nodedev: Introduce virNodeDeviceObjNew

Create an allocator for the virNodeDeviceObjPtr - include setting up
the mutex, saving the virNodeDeviceDefPtr, and locking the return object.

Signed-off-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>

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