utils: use Z_SYNC_FLUSH for inflate too