Fabs are spread out over pretty much all the world. Americas, Europe, Asia, Russia etc. all have a bunch of them. Africa perhaps not so much.
And while it may be true that the investment in a fab locks that fab in place, the next fab can be again built wherever.