amd-iommu: detach device explicitly before attaching it to a new domain