zlib: add sync versions for convenience methods