TRUE thread safe PKCS#11 library and enhanced sc-hsm-pkcs11-test program.