Financial disruptions and the cyclical upgrading of labor