The Market for Used Capital: Endogenous Irreversibility and Reallocation over the Business Cycle