Mode-locking of a THz quantum cascade laser by direct phase synchronization