Add atomic_stream_size_type.
Switch stats.cpp to using atomic_stream_size_type.
Add atomic_stats test.
process_write_request: Update recorded size of temporary files.