[PATCH RFCv2 06/13] iommufd: Make attach_handle generic