Reset thread name to idle when not in use.

Closes #188.
Merge pull request #190 from square/jw/thread-name-reset

Reset thread name to idle when not in use.