[Common] Fixed thread-safety of TaskQueue.Reset() (closes: #777)