In recent years, Jakarta has supercharged the mining and processing of the mineral, but the progress has come at a heavy cost.