zlib: separate sync/async methods

n/t