Fix errors introduced by adding runtime_Semacquire.

I fixed the panics by removing unnecessary locks (unnecessary since JS is single-threaded).