Allocate DebugInfo field for all critical sections (based on a patch
by Alex Pasadyn).
Get rid of the Wine-specific CRITICAL_SECTION_INIT macro.

diff --git a/scheduler/pthread.c b/scheduler/pthread.c
index c89a48f..5a08e26 100644
--- a/scheduler/pthread.c
+++ b/scheduler/pthread.c
@@ -325,7 +325,15 @@
 
 #define MAX_ATFORK 8  /* libc doesn't need that many anyway */
 
-static CRITICAL_SECTION atfork_section = CRITICAL_SECTION_INIT("atfork_section");
+static CRITICAL_SECTION atfork_section;
+static CRITICAL_SECTION_DEBUG critsect_debug =
+{
+    0, 0, &atfork_section,
+    { &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList },
+      0, 0, { 0, (DWORD)(__FILE__ ": atfork_section") }
+};
+static CRITICAL_SECTION atfork_section = { &critsect_debug, -1, 0, 0, 0, 0 };
+
 typedef void (*atfork_handler)();
 static atfork_handler atfork_prepare[MAX_ATFORK];
 static atfork_handler atfork_parent[MAX_ATFORK];