Remove references to JS_THREADSAFE. Fixes an assertion.