gitk: Wait for the window to become visible after creating it