Though banks still lead, the gap is narrowing between sales of new homes by builders and of foreclosed houses by banks.