[PATCH 6.5 259/321] LoongArch: Fix lockdep static memory detection