Don't query thread id during debugging to avoid JVM crashes

Calling the thread.getId() function through JNI seems to cause JVM
crashes when runtime debugging is enabled, so we avoid it for now.
16 jobs for master in 12 minutes and 26 seconds (queued for 1 second)
latest