Added CloseMode support to LeaderLatch in order to be able to trigger the notLeader() callback when a Latch is manually closed.