Add missing Gtk.threads_enter/leave call

Although these calls are deprecated, until we make sure the code
can run without them (calling all GDK/GTK+ code from the main
thread), we need to add them in order to prevent thread related
errors.

Patch originally suggested by: Alberto Garcia <berto@igalia.com>