Revert "GObject.threads_init is not needed any more"

This reverts commit 06a1e30fbe69d275a9583d4d79d699c6e47aecec.