um: get_safe_registers() should be done in flush_thread(), not start_thread()