unix: simplify queue callback execution code

We have already the same functionality in the code present, so why
not just use it?
unix: add assert when the stream is destroyed

Ensures if the write_queue_size is really 0.