zlib: fix premature gc'ing of wrapper object

Don't make the wrapper object weak if there is a pending write again
after making the callback.  Fixes a regression introduced in c79d516.