Even as they allow some employees to change how often they come into the office, tech companies are rapidly buying and leasing properties around the country.