Third-quarter losses narrower at D.R. Horton