This should happen before `stream.awaitWriteWindow()` returns.

Otherwise this call needs to lock on stream, and we die on dining philosophers because you're locking connection before stream here, and stream before connection above.