SOFTHSM-88: Accept NULL_PTR for pTemplate in C_GenerateKey