All schools should have a button to lock all entrances. Code Red and all doors lock.
time is of the essence.
The Code Red was not called in this case until the shooter was already inside the building and shooting was underway. Locking the doors at that point would have prevented nothing.