Mode-lockingofaterahertzlaserbydirectphasesynchronization