Apple CEO Tim Cook is known for being a supply-chain maven. And he faces a tough test as the company navigates a supply environment that's been disrupted by the artificial-intelligence boom.