In the race against the US for global tech supremacy, China has the upper hand in at least one critical area: rare earths.