cmFindPackageCommand: Optimize the last calls to `TryGeneratedPaths`

26 jobs for !7445 with feature/find_package-one-more-try in 25 minutes and 49 seconds (queued for 24 seconds)
merge request