[PATCH 6.6 597/737] LoongArch: Correct the calculation logic of thread_count