Global Hopf bifurcation of differential equations with threshold type state-dependent delay