removing globals in parser.cc
deglobalized parser.cc locks