A turnaround that investors have bet on in South Africa is coming true — at least in the nation’s credit outlook.