[PATCH 5.1 055/371] locking/lockdep: Fix merging of hlocks with non-zero references