Buyout funds and lenders were drawn to SaaS companies’ reliable revenue and low costs. Now the entire business model is at risk.