Fixed race condition in user settings form and send message dialog.