ssh-agent: fixed process lookup when lifetime is set