One lending blowup is showing how America’s banks helped fuel the private-credit boom, and what could happen in its unraveling. Traditional lenders, which have been losing market share to investment ...