Improve Thread Safety

* Collections: `GlobalSafeDictionary` now supported the getting and adding operation atomically. And correct the issue that `IsDisabledProcessing` is not thread safe.