Fixed race condition bug in DeflateStreamBuf