Africa is shifting from pit-to-port extraction to local processing and refining. Ghana, Namibia and the DRC are at the centre of a contest over who captures the margin.