[runtime] Remove unused g_thread () functions.