MINOR: init/threads: make the global threads an array of structs

This way we'll be able to store more per-thread information than just
the pthread pointer. The storage became an array of struct instead of
an allocated array since it's very small (typically 512 bytes) and not
worth the hassle of dealing with memory allocation on this. The array
was also renamed thread_info to make its intended usage more explicit.
diff --git a/src/debug.c b/src/debug.c
index 51ded9e..fce23c3 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -184,7 +184,7 @@
 #ifdef USE_THREAD
 	for (thr = 0; thr < global.nbthread; thr++) {
 		if (thr != tid)
-			pthread_kill(threads[thr], DEBUGSIG);
+			pthread_kill(thread_info[thr].pthread, DEBUGSIG);
 	}
 #endif
 	/* dump ourselves last */