Fix a race growing the log slot buffer.

A couple of other clean ups.