Phase-locking to a free-space terahertz comb for metrological-grade terahertz lasers