Implementation of rangeIterator for store.

no potential race condition here?