The surge that sent US Treasury yields to the highest in decades is threatening carry trades that had become the go-to strategy for emerging-market investors this year.