Fixed text rendering bug

- For whatever reason, SDL_ThreadID() was not getting called in the
specific circumstance of the text widget, and instead the compiler seems
to have optimized it away.  I have no idea what would account for that,
but assigning it to an intermediate value seems to fix the issue.
Compiler bug?