contrib: test pthread availability for Windows even without mingw-w64
If anyone has a pthread with a different Windows SDK it should work.
It will also avoid bogus pthread.h missing reports when mingw-w64 is not detected properly. HAVE_WINPTHREAD is not checked and assumed to be available.