Fix race condition in ON CLUSTER query affecting cluster replication determination
Official CH changelog text
In might be determined incorrectly if cluster is circular- (cross-) replicated or not when executing ON CLUSTER query due to race condition when pool_size > 1. It's fixed. #17640 (tavplubix).