Make ssh-agent stuff better on BSD and have a timeout

Also ensure we don't clobber forwarded sessions.