shardcache_thread_init() must be called from the background thread

and not from the creating thread