SERVER-13798 add dependency on connection to cursor object tracker in JavaScript scripting engine
(cherry picked from commit c576cdd324f847e0f047dfa5d1bee429d659efb2)
Merge remote-tracking branch 'upstream/v2.6' into v2.6