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