gui.ui: Flush stdout after setting tmux title

This fixes the bug that when using python3, the title is only set after
exiting ranger.