SERVER-14282 Fix random crash with recSizeKB > 4

Signed-off-by: Benety Goh <benety@mongodb.com>
SERVER-13961 Get rid of some usages of dbexit from deep in sharding code

This change prepares for removing dbexit altogether.
Merge remote-tracking branch 'upstream/master'