[server][DataStoreManager] Make DataStoreManager MT-safe.