Other mistake: At the beginning of the episode, when Picard and Riker leave the bridge to head to the teleport deck to receive the admiral and his wife, as the lift door opens Patrick Stewart makes a face at the film crew off-screen as he walks off the bridge. (00:02:05)
Visible crew/equipment: When Yar and Worf prepare to cut through the wall beneath the capital city, you can see the flash-powder cord before they shoot and the phaser beams get F/X'd in.
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.