Small optimization: do not read shard record if not serving.

We only use shardInfo for master, replica, rdonly.