Use plugin_thread_create() rather than pthread_create() in all plugins.