Prior to this commit, OnClassCondition started a thread even if the number of passed autoconfiguration class candidates never exceeded 1. This commit only starts a thread if there is actually work to split in half. See gh-22294