Wholesale Funding, Coordination, and Credit Risk