Add more logging to track down a monkey bug

The monkey has found a situation where getting or creating a thread id is
failing. Add more logging code to help track down the bug.
1 file changed