Remove lock() for performance

Running the JSIL compiler through the Visual Studio profiler showed that this lock statement was taking up a pretty significant amount of time (it estimated around 50%).

While I ran the profiler again after these changes and didn't notice such a huge improvement, the profiler is now showing other methods are responsible for most of the time during compilation (such as the methods in AssemblyTranslator).