Improve master lock election process

 - https://issues.jboss.org/browse/ISPN-4711
 - https://issues.jboss.org/browse/ISPN-4712
 - https://issues.jboss.org/browse/ISPN-4713
 - https://issues.jboss.org/browse/ISPN-4714
 - https://issues.jboss.org/browse/ISPN-4715