zlib: add sync versions for convenience methods
Merge remote-tracking branch 'upstream/master'