Time-consistent fiscal policy in a debt crisis