fixed pthread calls in sc-hsm-pkcs11-test.c