High: core: Fixes race condition in mainloop add/delete fd wrapper functions.
The g_io_add_watch_full id is never cancelled in mainloop_del_fd().
This means it is possible the mainloop_fd callbacks can be invoked
again after mainloop_del_fd() is executed.