make TTL work

fixes #1068 

It lacks tests, but is able to work well.
i wanna get some feedback for this implementation, and I am adding tests for it now.
i cannot understand what is this test for...

you create a raft node without a lead. then you do a proposal and expect a ctx timeout... 

this has nothing to do with sync right?