SERVER-14625 fix index bounds issue for negation inside elemMatch

(cherry picked from commit 42034d4c3713461658f00f952e13943770eb4620)
Revert "SERVER-13681: Remove lock that was an incorrect workaround for Azure Drive write size limitations."

This reverts commit 78c068e5d63d77648954252a785b3673d6e314b7.

(cherry picked from commit 231262fda82a3245b8690fdc6421ea1fa3a8a2dd)
SERVER-14039 Wrong limit after skip with $nearSphere, 2d index
Merge remote-tracking branch 'upstream/v2.6' into v2.6