For decades, South Africa’s rail system has been a lifeline for bulk commodities, from coal and chrome to iron ore and fuel. But in recent years,...