ts: add tests for JitterBuffer
TsJitterBuffer, while being quite feature-full, is the only
ts-element with no tests. Each iteration on the ts model makes it very likely to break it. Switching to
Mutexes as part of this MR induced many changes that have most probably broken whole or part of the features.