[server][DataStoreManager] Add a missing lock for MT-safe.