[server][DataStoreManager] Fix a problem that accesses freed region.