swiotlb: fix map_sg failure handling