gcr-ssh-agent: port avoid deadlock fix
This change ports two commits from gnome-keyring: ssh-agent to gcr: ssh-agent.
Original author: Steven Luo
Edited by Dhanuka Warusadura
This change ports two commits from gnome-keyring: ssh-agent to gcr: ssh-agent.
Original author: Steven Luo