=per #15212 Avoid half written snapshots in LocalSnapshotStore (Forward Port)

Conflicts:
project/AkkaBuild.scala