streams,gray: Fix finish-output condition in close
streams,gray: Fix finish-output condition in close

shamazmazum/iolib,attila-lendvai/iolib,deadtrickster/iolib,tiago4orion/iolib,deadtrickster/iolib,deadtrickster/iolib,attila-lendvai/iolib,shamazmazum/iolib,dkochmanski/iolib,lispnik/iolib,lispnik/iolib,tiago4orion/iolib,sionescu/iolib,dkochmanski/iolib,sionescu/iolib,tiago4orion/iolib,shamazmazum/iolib,lispnik/iolib,dkochmanski/iolib,sionescu/iolib,attila-lendvai/iolib