replace lock with atom in SyntaxConstructClassifier