Macroeconomic adjustment under regime change: From social contract to Arab Spring