You are projecting in the most curious way. Of course many Africans were not tribal—Europeans bought slaves from Africans in ancient cities.
If you're not rich, wealth distribution matters enormously.
I'm a bit amused that you won't name the cities in Africa that you think were socialist. I am always willing to educate myself, but I can't do it without pointers.
You might find this interesting: https://www.washingtonpost.com/world/africa/an-african-country-reckons-with-its-history-of-selling-slaves/2018/01/29/5234f5aa-ff9a-11e7-86b9-8908743c79dd_story.html