=per #13962 Close LevelDB snapshots to avoid resource leakage (Validation)

* Cherry picked from release 2.3
* Fixes #13962