Guard WAL stop against ingress arriving during flush
The full review of #22995 identified a remaining, unchanged buffer-clear ordering risk in LocalWalSyncImpl.stop().
stop() drains the pendant tail, chunks and awaits the flush, then clears _frames. If an ingress producer can still call onFrameCaptured while that flush awaits I/O, the later clear erases those arrivals. #22995 fixes the automatic reconnect codec boundary; its review classified this separate stop-path concern as minor and outside that diff.
Follow-up acceptance: establish the production stop/ingress ownership contract, then either reject ingress before the stop boundary or synchronously seal it before I/O. Add a forced write-barrier regression asserting the chosen behavior, and preserve all admitted pendant frames. Do not weaken the reconnect packet assertions or infer safety from an empty buffer alone.
Relevant guard: app/test/unit/local_wal_durability_seam_test.dart. Failure class: FC-buffer-clear-after-async-flush.
Submitted fix in #23036:
- Establishes the synchronous stop ingress boundary (_isStopped = true), rejecting any subsequent ingress in \onFrameCaptured()\ prior to admission.
- Synchronously seals the pendant tail and chunks within a single _enqueueBuffer\ barrier before awaiting _flush(generation), eliminating post-await buffer clearing.
- Adds the forced write-barrier regression test in \pp/test/unit/local_wal_durability_seam_test.dart\ asserting that arrivals during the flush are rejected at the boundary and all admitted pendant frames survive on disk with ordered payloads (\FC-buffer-clear-after-async-flush).