Credit Cycles, Firms, and the Labor Market