Fix SIGSEGV in --wrap-key of sc-hsm-tool on Windows

sc-hsm-tool used the public function sc_asn1_write_element that allocates memory for the buffer returned. Calling free() for such an allocated buffer causes a SIGSEGV in Windows as the opensc.dll and sc-hsm-tool.exe use a different heap.