task: Use SetThreadDescription Win32 API for setting thread name

Since Windows 10 1607, we can make use of SetThreadDescription() API
for setting thread name. Unlike previously used exception based
method, this API will preserve configured thread name on dump file.

Part-of: <gstreamer/gstreamer!741>
36 jobs for !741 with backport-mr-735-into-1.18-win32-thread-name in 52 minutes and 17 seconds (queued for 13 seconds)
detached
Status Job ID Name Coverage
  Build Docker
passed alpine amd64 manifest builder docker #6996888

00:00:14

passed android docker #6996886

00:00:13

passed cerbero fedora amd64 docker #6996885

00:00:14

passed fedora amd64 docker #6996883

00:00:14

passed gst-indent amd64 docker #6996890

00:00:33

 
  Preparation
passed gst indent #6996892

00:00:08

passed manifest #6996891

00:00:16

 
  Build
passed build cerbero cross-android universal #6996910
gstreamer

00:13:03

passed build cerbero cross-ios universal #6996918
gst-ios-14.3

00:25:53

passed build cerbero cross win32 #6996912
gstreamer

00:07:43

passed build cerbero cross win64 #6996914
gstreamer

00:07:36

passed build cerbero fedora x86_64 #6996908
gstreamer

00:09:54

passed build cerbero macos x86_64 #6996916
gst-macos-11.1

00:12:52

passed build clang fedora x86_64 #6996899

00:05:08

manual build msys2 #6996905
docker windows 1809 allowed to fail manual
passed build nodebug fedora x86_64 #6996894

00:10:52

passed build static fedora x86_64 #6996895

00:10:52

passed build static nodebug fedora x86_64 #6996897

00:07:39

passed build vs2017 amd64 #6998581
docker windows 1809

00:08:31

passed build vs2017 x86 #6996903
1809 docker windows

00:13:41

failed build vs2017 amd64 #6996900
docker windows 1809

00:13:19

 
  Test
passed check fedora #7002927
gstreamer

00:04:52

passed integration testsuites fedora 1/4 #6996923
gstreamer

00:14:03

passed integration testsuites fedora 2/4 #6996924
gstreamer

00:14:23

passed integration testsuites fedora 3/4 #6996925
gstreamer

00:13:47

passed integration testsuites fedora 4/4 #6996926
gstreamer

00:16:07

passed valgrind bad #6996931
gstreamer

00:07:16

passed valgrind base #6996928
gstreamer

00:09:48

passed valgrind core #6996927
gstreamer

00:08:40

passed valgrind ges #6996932
gstreamer

00:07:12

passed valgrind good #6996929
gstreamer

00:10:32

passed valgrind ugly #6996930
gstreamer

00:05:46

failed check fedora #6996921
gstreamer

00:08:27

 
  Integrate
passed cross-android universal examples #6996933

00:06:33

passed cross-ios universal examples #6996935
gst-ios-14.3

00:03:19

passed documentation #6996934

00:13:34