[PATCH v4 08/10] iommufd/selftest: Add a helper to get test device