Systemic Risk and the Refinancing Ratchet Effect