[Utils] Fix a problem that the callback function is called synchronously in a condition.

This patch also fixes the test that is depending on the wrong behaivor.
Merge pull request #678 from project-hatohol/executeOnGLibEventLoop-strict-async

[Utils] Fix a problem in which the callback function is invoked synchronously in a condition.