PUB-895 fix transfered from H2O1.

The bug was causing inconsistent key snapshot, since
Prime values were skipped by localSnapshot code.