correctly handle shards that are initializing when querying sys.shards