Fix missing locker in JSScriptFunction