sbws must not overwrite the bandwidth file, to avoid race conditions
Instead, it must write a temporary file, and then rename the temporary file to the bandwidth file name.
It should be a quick fix.
For background, see: https://github.com/torproject/torspec/pull/21#discussion_r200971436