[server][CacheServiceDBClient] Add a test: test_hasInstanceByThread().