Continuity mistake: The lipstick on Picard changes between when he is kissed, and later when he leaves the holodeck (it's darker and on and above his lips.) Also, and more importantly, being holodeck matter, it should have disappeared after re-emerging in the real world.
Continuity mistake: After entering the Holodeck for the 2nd time, a vendor hands a folded piece of paper to Picard, yet Picard receives it unfolded.
Continuity mistake: When the two holographic villains are disintegrating outside the holodeck, there is a corridor opposite the holodeck. When the good guys exit a minute later, there is suddenly a solid wall. (00:38:20 - 00:39:20)
Continuity mistake: Near the end, after being subjected to the snowy scene, only Mr. Leech has snowflakes on him. They're on him as he steps into the corridor, then they're suddenly gone.
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.