Latvia’s decision to join the euro in 2014 is a timely reminder of some key lessons