Fix thread start during service start.