dns plugin: Use `pthread_sigmask' rather than `signal'.