[Utils] Add an sync/async option to executeOnGLibEventLoop().

This patch is only modify the interface. Implementation has not
been performed yet.