Fixed possible hang during ThreadManager::RunStaged() and ThreadManager::Sync() in a pre-emptive environment if the mailman thread happens to be pre-empted right after calling m_mailSyncEvent.Notify().
Probably a better fix for this will come in the future. I'm overall not fully sold on the current implementation of Sync().