[server][UnifiedDataStore] set copy-on-demand flag with the new event hook mechanisim.

The new mechanism using DataStoreManager::register(DataStoreEventProc *)
can set the flag even when the DataStore (ArmBase sub-class) is
added dynamically.