[libvirt] [PATCH 6/6] node_device: replace duplicated code in hal and udev backends