[RFC 5/8] iommufd/selftest: Add a helper to get test device