Refactor log.
Remove locks in Prepare, Accept, and Decide methods.