An increasing number of governments are pegging retirement age to life expectancy, but it comes with consequences.