Properly print deadlock thread. Switched to using PrintWriter instead of
StringBuilder.
Merge branch 'slow-request-tracking' of github.com:jenkinsci/support-core-plugin into slow-request-tracking