be safer in shardcache_destroy()

to avoid trying to release null pointers if called from
within shardcache_crate() because something went wrong and
the structure is not fully initialized