Foreign investors are flooding into South Africa’s government bond market to take advantage of one of the best emerging-market trades of recent years.