You can keg and drink it as soon as you want.
Any plastic or rubber that touched it will be contaminated forever. Time to replace that stuff. A few years ago I was in a rut where a half dozen batches turned out sour. Eventually I decided enough is enough, and converted from plastic to all glass fermenters. The only trouble I have had since was when I oaked a batch. The oak itself contaminated the beer and ruined it. I guess I should have taken extra precautions against contamination from the oak. Oh well. Lessons learned. We all need to learn the hard way sometimes. Fortunately, Lacto soured beers taste pretty good, and I had several of those batches that I actually was able to enjoy, some more than others. It's the other wild bugs out there that cause problems. I don't know what was in that oak, but whatever it was.... yuck.