Convert some JSC code over to std::mutex