utils: use Z_SYNC_FLUSH for compression