[libvirt PATCH v4 02/12] nodedev: factor out nodeDeviceHasCapability()