ZIP byte streaming using critical section