Just three months ago, emerging nations from Indonesia to Brazil were intervening in foreign exchange markets to make exports more competitive. Now they are selling dollars to stem currency declines and quell inflation.