SERVER-13207 Unordered batch writes to a shard with version mismatch can trigger dassert at mongos
(cherry picked from commit 337b9dd3f926323aae5025acd3a52b8c1c497b2d)