Remove locks that aren't needed in JS's single-threaded environment.

This fixes panics that were introduced by adding runtime_Semacquire.