Formation of terrestrial planets in disks evolving via disk winds and implications for the origin of the solar system's terrestrial planets