[PATCH openEuler-5.10 018/557] locking/lockdep: Avoid potential access of invalid memory in lock_class