asymmetric keys: refactory and fix free fingerprint issue in key preparse of pkcs #8

We free fingerprint in pkcs8_key_preparse() too early, it causes caller
grab garbage and trigger kernel oops when remove private key. This patch
fix this issue and refactory code.

Signed-off-by: Lee, Chun-Yi <jlee@suse.com>