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.