store/leveldb: make stream thread-safe

Wrappign stream functions with a mutex;
making Key and Value always return correct result is Advance returned true.
Left a TODO to wrap constructor with a db-scoped mutex.

Change-Id: I3355a1d4e50f5b3bc76f8e57b0d20a6398568b89
5 files changed
tree: 244589d1537a8efb3eefd84bc80ee6094e94f598
  1. services/