[server][UnifiedDataStore] Make an operation of the flag MT-safe.