Wayne Parnell went from zero to hero as South Africa mounted a brilliant recovery to beat Australia by three wickets and level their T20 series at 1-1 in Johannesburg.