Fix polkit agent dialog signal handling
This fixes various problems exhibited when polkitd cancels an authentication request. This can be simulated by running pkexec true
in a gnome-terminal window, then running pkill pkexec
from another VT (such as an SSH session). The polkit dialogue in gnome-shell should disappear, but it doesn’t do unless this branch is applied.