Update to new Debug.with_thread_associated API

Signed-off-by: David Scott <dave.scott@eu.citrix.com>