ui/ncurses: Improve update handling in nested screens