[PATCH 5.17 0007/1126] locking/lockdep: Avoid potential access of invalid memory in lock_class