ensure a node sleeps a lease period on startup if another node was previ...

...ously the master

(this backports some changes from the 1.7 branch)