xvimagesink: port to new GLib thread API