Thousands of North Carolina homeowners have taken advantage of a new state program designed to head off home foreclosures.