add better error messages when locking/unlocking. fix no keys shown when KeyInfoView is started  with agent locked and then unlocking. Fixed problem with this.Invoke being called when !this.InvokeRequired.