SERVER-8170: free all external JavaScript resources on V8Scope destruction