Massachusetts is facing a dual challenge in the housing market—a shortage of supply with a shrinking construction workforce.