[Utils] Make sure the event handler to be removed is not running when removeEventSourceIfNeeded() returns.

This fix is also for issue67.
https://github.com/project-hatohol/hatohol/issues/67