Snapshot/Restore: switch to write once mode for snapshot metadata files

This commit removes creation of in-progress snapshot file and makes creation of the final snapshot file atomic.

Fixes #8696
Are there some major filesystems that don't support atomic moves? If so, I think we should document them as not usable with the FS repository.