As competition for minerals needed to produce clean energy technologies intensifies, a growing number of countries have resorted to an age-old mechanism to cope with the threat of scarcity: stockpiling. The world’s biggest economies are racing to shore up reserves of cobalt, lithium, graphite and rare earths, which are needed to produce batteries, electric vehicles, wind turbines and electric systems to wean the global economy off fossil fuels.