Sync timeout

This patch contains : 
- Cache lastestZxid in SimpleLog
- Use BuffereInputStream while iterating the log.
- Use different timeout for synchronizing.
- Clear the message queue before going back to recovery phase.