polkitAgent: Ensure cleanup if dialog wasn't shown
It is possible for an initiated session to complete without a request if polkit can authenticate the action without user input. We fail to clean up after ourselves in that case, as the cleanup is done after the dialog is closed.
Fix this by running the cleanup on close() when the dialog wasn't shown.
Fixes #3701 (closed)