The log formatter reads the environment through localtime(), which can
race with setenv() on older glibc. Flush queued records before the
fixture sets its variables and before it restores them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018p3TPKSBD7eaHtKtQjCcrv