[PATCH 5.10 021/599] locking/lockdep: Avoid potential access of invalid memory in lock_class