Cherry-pick: Reset KSMClient state even when logout is cancelled
Now the KSMClient state is properly reset when a log out is canceled, preventing some funny business when the state is not cleared. For example inside of KSMServer::handlePendingInteractions, when it checks if a client has pending interactions.
(cherry picked from commit b5b2c757)