Mining productivity in South Africa under threat as local challenges weigh heavy