The fallout from a default by Cosun Group illustrates the complexity of business relationships in the country’s booming but largely unregulated financial-technology sector, which has channeled massive amounts of cash from individuals’ savings into loans to businesses.