Write queue after connect windows

Create a `bufsml` thing here like we do on Unix, to avoid malloc-ing if we have <= 4 buffers.