ThreadHandler: allow an optional stop reason to be passed to...

...HandleThreadDebugged().
TeamDebugger: When stopping after an image load...

...set a stop reason to indicate the responsible image.