Make slowNightly/sharding_rs1.js more robust

Use a more reliable method for stopping the balancer before computing
database hashes.  awaitReplication() is not sufficient if the balancer
is still running, since the data on the primary can change after we've
checked for replication.