Follow-up to r670653: Implement deep sealing in Javascript as using the native `JS_SealObject` function in deep mode somehow also locked down outer scopes, leading to various obscure errors.