Record prices are breathing new life into South Africa’s ailing gold-mining industry.