We locked those doors since some people would get stuck when trying to save Williams as they weren't able to kill the enemies (and the doors are locked till you kill all of them).