American Apparel has said it expects to enter into a credit agreement "as soon as practicable" as it revealed a narrowing of its net losses in the second quarter.