[server][UnifiedDataStore] Improve the usability of getDataStore().

Forcing users to call unref() degrades the usability and is an
invitation to leak resources.

This patch resolves the above problems by using the stamrt pointer.