=per #15212 Avoid half written snapshots in LocalSnapshotStore

Fixes #15212