A write admitted after its handle was flushed was acknowledged and then
lost when the process exited. The shutdown flush now sets a flag that Write
checks under the handle lock, takes every handle lock once to wait out the
writes already admitted, and reports whether every flush succeeded. The test
now buffers real bytes and checks they are uploaded and committed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>