Polls have begun to close in South Africa's fifth all-race election, with authorities promising to keep stations open as long as it takes for people already in line to vote amid high urban turnout.