Unemployment and Gross Credit Flows in a New Keynesian Framework