corrected deadlock of a thread in SyntaxTagger