unix: stream, fix drain not applying when closing the socket