Alternative lenders once made good money issuing commercial real-estate loans—now they are stuck on the sidelines.