NC and 10 other states reach agreement with Countrywide to help nearly 400,000 homeowners facing foreclosure