[libvirt PATCH v6 19/30] nodedev: refactor tests to support mdev undefine