Banks have increased their reliance on private credit in recent years, exposing them to unregulated loans that often have little disclosure.