There is a race between switchtime/runtime reading in kern_thread_cputime() and switchtime/runtime updating in statclock(). Critical section does not prevent statclock and so not enough, replaced it with PROC_STAT spinlock. Bug introduced around 12.1 when runtime updating added to statclock.
PR: 262273