Replace glib threadpool usage with a 'dumb' thread implementation.