[PATCH 6.1 491/634] LoongArch: Correct the calculation logic of thread_count