[server][UnifiedDataStore] Use an effient way to detect the VirtualDataStore and DataStore to be stopped.