Africa has the minerals to power the green transition. Capturing more value means countries must pool market power and build shared capabilities.