The Arsenal of Freedom - S1-E21
Continuity mistake: As the Enterprise is attacked, the registry number is reversed.
The Arsenal of Freedom - S1-E21
Revealing mistake: As Data ducks to avoid the blast from the probe, the scene shifts to a wide shot. After Data tosses Yar to safety, he jumps after her. As he does, you can tell it's a stunt man with a bad wig.
The Arsenal of Freedom - S1-E21
Continuity mistake: After Geordi separates the ship, the saucer was well away from the star drive section, and they're at impulse power. When the star drive section goes to turn around, it is at warp speed, and it is a re-use of the high warp separation sequence from Episode One "Encounter at Farpoint."
Answer: Yes. The doors to the holodecks can be locked when in use by anyone aboard the Enterprise so they couldn't be disturbed. However, high ranking officers like Captain Picard could override the doors as it's seen that overrides are in use even for the crews quarters. Even Barclay, when he's indulging in one of his fantasies could have the doors to the holodeck unlocked by an override code.