Reduce race conditions in parser.