The AI gold rush is creating shortages for memory chips that could raise prices for all sorts of gadgets.