pkcs11: Fixed invalid pointer access in id2name