Thread safety for C code: clearer code.