Fix thread_id and register clobber in the ARM64 injector