Output proper error messages for prthread_setspecific failure in rlm_perl.c and lib/log.c