[libvirt] [PATCH v3 4/5] util: extend virExecWithHook()