runtime: Fix GC bug caused by Entersyscall modifying reg.