FindThreads: Skip check for -pthread flag when targeting the MSVC ABI
Since !7230 (merged) we no longer check
for pthreads.h
before checking for the -pthread
flag. Compilers
targeting the MSVC ABI do not have such a flag, so avoid performing the
check unnecessarily.
Fixes: #23829 (closed)
Backport: release