Sudden stops, time inconsistency, and the duration of sovereign debt