Fix segfault when loading pthread_sigmask symbol.

Need to be explicit on where to find the symbol. When called, the libpthread may or may not be loaded.
I have seen segfaut inside the call to safe_vprintf() from errx() when dlsym fail.