Update src/tools/pkcs11-tool.c

fixed filling key type attr on writing object

pointer refers to local variable from destroyed stack frame