Remove obsolete debugging code from _thread.scm
Add new debugging code to _thread.scm