The $22 trillion private credit machine that has quietly reshaped corporate finance is now flashing the kind of warning lights that preceded past blowups in subprime mortgages and structured products.