Correct lastLockedObject to ObjectSet
Fix incorrect and racy swapping of mainThread.ionTop in LockedJSContext