fix concurrency issues around iterating the keyset for batch reader
Merge pull request #269 from fourk/fix_concurrency_with_batch_reads

fix concurrency issues around iterating the keyset for batch reader