Add more detail to thread debug messages

Track where the thread is in the loop, and which router it is
working on, to be reported by the 'workers debug' command.

Change-Id: I7549c03f67810bbeaa8a0647319897d4b9f7d8c2