Close snapshots and compacted db.

This decrements ref-count, potentially allowing node reclaimation.