Use Debug.with_thread_named rather than the manual functions.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #14 from djs55/add-backtraces

Use Debug.with_thread_named rather than the manual functions.