store/memstore: recursively close objects

Make sure that ia object 'a' is closed, then object 'b' created
from 'a' is also closed, where 'a'->'b' are:
store -> transaction -> stream
store -> snapshot -> stream
store -> stream

Change-Id: Iebc3776f057bb988efb4f7ea6bdbfd0055abc8ca
10 files changed
tree: 7020d1e8e1c9b9a6c2c287a4a3b78c4b137a6354
  1. v23/
  2. x/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTORS
  6. LICENSE
  7. PATENTS
  8. VERSION