[PATCH 4.14 031/293] locking/lockdep: Fix merging of hlocks with non-zero references