Fixed GSRegisterCurrentThread() function to correctly handle GC and multi-threaded notification.