Gardening: Fix popups.

Popups get closed automatically after being focussed for a short duration. This
was as a result of recent changes in WaylandDisplayPollThread. Looks like we need
to call flush after dispatch in WaylandDisplayPollThread. This doesn't cause any
regression and fixes popups. So, reverting these changes.