Update thread to compky with glib last apis

Signed-off-by: Raphael Catolino <raphael.catolino@gmail.com>