[PATCH 6.12 417/567] LoongArch: Correct the calculation logic of thread_count