Adjust LeaderLatch to have a callback that will be notified when the latch switches state.