[libvirt] [PATCH] util: reduce syscalls for virGetDeviceID