Currently ShardingState::initialize can be called more than once on multiple threads and there is nothing to protect against this.