agent: fix tpm2d keytotpm handling
* agent/divert-tpm2.c (agent_write_tpm2_shadow_key): Call agent_delete_key before agent_write_private_key. Recover from an error.
- Fixes-commit: a1015bf2fc07dabb1200eab5fa41f13e7bf98202
- Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>