Australia beat South Africa by eight wickets in Durban to take an unassailable 2-0 lead in the three-match T20 international series.