SERVER-11496 SERVER-2212 Fix race condition in max_time_ms_sharded.js

Wait for inserts to complete before expecting count to include them.