pkcs11: Fixed a race condition in C_SetPIN for STARCOS