fix stream link strategy

previously this would unregister the job as soon as someone attached a stream

[finishes #63091132]
fix streaming integration test

This used to rely on old broken behavior, before attaching a stream fed the
client the current buffer.
fix discarding output to always successfully write