fix ncurses synchronisation/race issue