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