Fix the logic related to WaylandDisplayPollThread Thread

This patch fix the logic associated to the stop of event processing task
to avoid orphelan thread.