Fix for tests that were giving the error "HandleScope::HandleScope Entering the V8 API without proper locking in place".