When will AI’s stock-market dominance fade? Goldman says watch this key signal.