Don't use prepareBuffer for uncommitted log entries.

Avoids errors and unnecessary recovery when there are too many
uncommitted log entries outstanding.