Leader commits only when there are new entries to commit.