Fix memcache shard (un)registration.