[PATCH 4.9 026/223] locking/lockdep: Fix merging of hlocks with non-zero references