MediaLIbiOS: fixed the crash on sleanupStream - thread synchronisation problem