In debug build, prints out the thread id in the assert message, to make it easier to debug.
Tested by temporarily inserting an assert:
<Application .../simple_app (3642802). Internal Error: DynamoRIO debug check failure: .../src/core/dynamo.c:763 false (Error occurred @0 frags in tid 3642802)
Fixes #4905 (closed)