That increase in population would still happen whether the houses were sold off or not. And since the 5000 houses sold off are already occupied then they won't be available to any additional demand due to an increase in population. So the situation hasn't improved or worsened in either case.