Server: Atomify the savefile writing.