Credit, Externalities, and Nonoptimality of the Friedman Rule