[Utils] Clean up removeEventSourceIfNeeded() with executeOnGLibEventLoop().