U.S. may be waking up from foreclosure nightmare