This is how it works:
Once you walk over the spawn point, the game will reset the squad and look if a Light is enabled (Off by default, On once you beat the squad for the first time)
If the light is off, it will enable the trigger for the lock
If the light is on, it will not enable the trigger and do nothing. This is why once you walk back to the spawn point after you skipped it you can trigger the lock