BUILD: debug: re-export thread_dump_state

Building with threads and without thread dump (e.g. macos, freebsd)
warns that thread_dump_state is unused. This happened in fact with
recentcommit 1229ef312 ("MINOR: wdt: do not rely on threads_to_dump
anymore"). The solution would be to mark it unused, but after a
second thought, it can be convenient to keep it exported to help
debug crashes, so let's export it again. It's just not referenced in
include files since it's not needed outside.
diff --git a/src/debug.c b/src/debug.c
index 23b72b6..8d62108 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -54,7 +54,7 @@
  * adds 1<<16 and sets the lowest 15 bits to the ID of the next thread to
  * dump + 1. Only used when USE_THREAD_DUMP is set.
  */
-static volatile unsigned int thread_dump_state = 0;
+volatile unsigned int thread_dump_state = 0;
 unsigned int debug_commands_issued = 0;
 
 /* dumps a backtrace of the current thread that is appended to buffer <buf>.