Fix internal log index deadlock.