This fixes wrong gtm restoration point calculation regarding GXID wraparound.

ZhangJulian found this and suggested the fix.