SERVER-13798 add dependency on connection to cursor object tracker in JavaScript scripting engine
(cherry picked from commit c576cdd324f847e0f047dfa5d1bee429d659efb2)