Make LogBuffer.flush_ invoke its callback asynchronously.