S&P 500 index-fund investors are locked into a big bet that AI capital expenditures will pay off.