LoongArch: Fix copy_thread() build errors