Japan is racing to reduce its reliance on Chinese rare earths — from dredging the seabed to inventing new magnets — as its prime minister visits the White House this week.