update noui_ThreadSafeMessageBox function to use strCaption

- ensure we use strCaption for printf and fprintf, as before it could
  happen to have an error message in the debug.log, which had no "Error"
  (or whatever) in front
Merge pull request #2143 from Diapolo/ThreadSafeMessageBox_caption

update ThreadSafeMessageBox function to use strCaption