FindThreads: Skip check for -pthread flag when targeting the MSVC ABI

Since commit 3257c340 (FindThreads: avoid failing in AIX when using
-D_XOPEN_SOURCE=500, 2022-04-30, v3.24.0-rc1~197^2) 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
32 jobs for !7551 with FindThreads-msvc-no-pthread-flag in 43 minutes and 47 seconds (queued for 9 seconds)
latest merge request