Reduce network overhead of locking in HA

We now keep track of reentrancy locally on each instance, and only do a network round-trip the first time we grab a lock.
Merge pull request #2179 from chrisvest/2.1-slave-lock-manager

Reduce network overhead of locking in HA