ultralite: minor fixes to avoid compiler warnings.
First TRUE thread-safe pkcs#11 module.