No, what allowed that was them not requiring two people to be on the flight deck. That’s insane to me (and doesn’t happen in the US which customarily has a two person rule, which I believe is defined in Part 121, but still trying to find it).
That wouldn’t matter at all if not for the locking down the cockpit.
That’s like saying seat belts wouldn’t be needed if the car didn’t move, no?