FindThreads: use a macro for the repetitive thread library checks
Merge topic 'FindThreads-macro' into next

e94a8925 FindThreads: use a macro for the repetitive thread library checks