Whale Rock Capital Management's flagship hedge fund lost 21.7% in July amid a sell-off in AI stocks, wiping out about half of the fund's gains for the year.