=per #13898 Make LocalSnapshotStore directory creation more robust (Validation)

* Cherry picked from release 2.3
* Fixes #13898