Fix logging performance problem.
cluster: Make log replays non-blocking.
cluster: Don't replay log messages twice.
cluster: Another log replay fix.