[libvirt PATCH v4 17/25] nodedev: refactor tests to support mdev undefine