MP1-4155: fixed crash in MPEG2 TS streams due to not locked access to stream length