zlib: fix write req reference counting