fix concurrency issues around iterating the keyset for batch reader

See https://travis-ci.org/rackerlabs/blueflood/jobs/20561358#L3105 for evidence of concurrency issues.