Implemented shutdown latch to make a node await other in-jvm cluster members to detect its death.
Cleaned up MemberListTest.testSwitchingMasters() ..
Fixed LifecycleService.shutdown() deadlock.
Merge pull request #1307 from mdogan/feature/3.2/local-shutdown-latch

Implemented shutdown latch to make a node await other in-jvm cluster mem...