uicompat: remove unused method Task.InvokeUIThread

Change-Id: Ie2e8a95cd7c15df538636f3419560985b20b4be1
Signed-off-by: Alissa Bonas <abonas@redhat.com>