China is signalling that it may use rare earths exports as leverage in the trade war with the U.S., as tensions between the two powers escalate.