iommu/amd: Make sure iommu->need_sync contains correct value