Fix a memory leak in libhsm
Make sure that engine->workers is NULL after free
More of new HSM key factory implemented, not tested yet