tl;dr No barn doors were actually locked. A series of protocol changes are suggested to specifically address listeria bacteria in food processing plants.
Also, conjecture: Closing a barn door would likely not solve any actual food safety issues, but it might keep the livestock in place.