Fix crash when calling OSTerminateThread after OBS::~OBS
Make pending streams not call OSTerminateThread on early exit
Ensure InitEncoderData is called before DelayedPublisher connects

This seems to fix crashes in various subsystems that were introduced
in e7804fcef0b9afa2b22bd5bc8c57c6c706f02ab1 when using a publish delay