I was with you until the last paragraph. Globalization has reduced wealth inequality on global scale, even if it has exacerbated on rich countries. It has taken millions out of poverty, and increased cooperation of nations and citizens. And it also goes against your second paragraph. It makes no sense to stop globalization, even more if you take into account the imminent automation of many jobs.
I'm not saying that globalization has not created problems, mostly for people who were left out, but we're better trying to fix those problems instead of trying to stop progress.
Regarding the bolded, I think there is a difference between internationalism, which ultimately seeks to reduce the nation state, and globalisation, which is dependent upon it.
Certainly, globalisation has done a lot to increase to wealth on a global scale - even if life (or death, as it too often is) in an Indian garment factory isn't perfect, it does (ideally) give those working there a chance to accrue a material wealth they would not necessarily have and escape the poverty they might otherwise face.
However, the wealth inequality between India and the UK isn't a bug, but a feature, of globalisation. After all, the process by which it can be economical to provide those jobs to India (and so aid the poor there) is dependent upon it being cheaper to do so than other countries; as soon as that difference is reduced, why continue investing in any particular location over another? At that point, it would make more sense to return to a more localised model of production, given that the profit made from reduced labour costs would no longer outweigh the extra money spent on transportation.
As such, I am pessimistic that globalisation will ever be able to fix the "problem" of wealth inequality, because it is that inequality that enables it to function.
Racism really makes people vote against their own self-interests (see Brexit as another example of this)
I think the Brexit vote is a complicated example that really underscore the differences between the "winners" and "losers" of globalisation. Certainly, it would not be a good thing if the UK economy were to crash in a turn of events that saw it lose access to the common market and so a flight of its service-based industries to other, EU-based countries; on the other hand, I do not think it would necessarily be such a bad thing if those events precedented a recognition of the "service-based" economy as a myth and a reconstructing of the UK's manufacturing sector.