I used to try to displace the O2 layer in my kettle by flushing CO2 into it, then sealing the lid with Saran Wrap and all that jazz. As I wanted to take ph samples as it soured, going back thru this process each time seemed a hassle.
I decided to skip all the purging and sealing, and have found no discernable difference in my finished product. Since I start the souring process at 4.5ph, this acidity should help keep most bugs at bay. I use L Plantarum lacto cultures and have success with this strain at ambient temps around 75F or so.
I will add this since you asked about removing O2 from the mash: Some folks who promote LODO will boil their mash (strike water) to help rid O2 before cooling back down to mash temps. Not sure if this is exactly what you were asking, but it is a technique used by LODO aware brewers.