The lazy-stream guard passed alone and timed out in a full run: the test worker
shares one module registry between files, so when another spec had already loaded
`ai`, `vi.mock` was ignored and `generateStructured` bound the real
`streamObject`.
generateStructured takes an optional stream factory now, and the test supplies a
stub whose object is released by the first pull of its text stream. Same proof
(the drain is what makes the object resolve), no timers, no module mocking, no
dependence on file order.