[Utils] Add a functor version of executeOnGLibEventLoop().
[Utils][test] Clean up.