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

This closes #1
minor refactoring