iommu/amd: Fix accounting of device_state