Fix stream retain with read-only mark
Fix stream retain with read-only mark

In case of a read-only mark, some data could still be sent even if a
read-only mark exists.

nabilbendafi/haka,nabilbendafi/haka,nabilbendafi/haka,haka-security/haka,Wingless-Archangel/haka,haka-security/haka,lcheylus/haka,lcheylus/haka,haka-security/haka,Wingless-Archangel/haka,LubyRuffy/haka,lcheylus/haka,LubyRuffy/haka