Welfare Implications of Bankruptcy with Endogenous Credit Limits