(OSK) Move runtime state (OSK callbacks) to g_extern