tests,w32: Fix thread creation in run-threaded
tests,w32: Fix thread creation in run-threaded

* tests/run-threaded.c (create_thread): Check proper return
value and not return value of CloseHandle.

gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme