Revert 608c70aa6.
Make writes to the magic-save-data-fd atomic.