[server][CacheServiceDBClient] Fix dangling pointers after reset().