Supply-chain legend Tim Cook finally meets his match with Apple’s memory crunch