gui: Make curses_log() work also when curses is not active.