Passive and hybrid mode locking in multi-section terahertz quantum cascade lasers