Fixed a potential threading problem in DTSC::Stream.