In the years leading up to the 2008 financial crisis, mortgage lenders fueled the housing bubble by issuing loans to high-risk borrowers. But instead of funding the loans by tapping deposits, as banks had done for generations, many lenders borrowed against lines of credit — and then sold the mortgages…