Correct the function name shown in diagnostics in warn-thread-safety-analysis.c

Patch by Alex Wang.