agent: Fix printed error in findkey.
* agent/findkey.c (agent_write_private_key): Fix error reporting.