Prevent multiple threads to populate the keyword table

Ran into an exception while generating C# code using CodeDom.