Continuity mistake: When Geordi falls down the hole in the beginning of the episode his visor is seen to his right. When he wakes up he finds it to his left.
Continuity mistake: After Wesley makes his neutrino pulse suggestion, Picard tells him to go do it. Wesley walks off camera. Then there's a commercial break, and Wesley is back on the bridge in the long shots. A few minutes later we hear the turbo-lift and Wesley walks back onto the bridge.
Visible crew/equipment: When Riker first beams down he uses a flashlight - if you look closely you can see the electrical cord that runs down his sleeve to an off-screen generator.
Other mistake: During his final discussion with Tomalok, Picard tells him that the Enterprise will escort the Romulan ship back to The Neutral Zone. However, as the episode ends, the two ships are heading off in opposite directions. Both the Enterprise and Romulan warbirds have demonstrated in the past that they can spin on their axis from a standstill. There is no reason for either ship to head away from the other to turn around.
Other mistake: While down in the pit Geordi makes a couple of spikes to climb out with. When the phaser beam is melting the ore, the metal goes molten about two inches in front of the beam. Also, the spikes are rounded, like handles. The molds he made would have left a flat side.
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.