Fix asynch dialogs for thread_join