Continuity mistake: William Riker is playing cards with La Forge and Worf. The camera is focusing on Riker and there is no 4th chair. When Tom Riker enters, William says "Why don't you join us" and now removes his trombone from the 4th chair which has suddenly appeared. (00:31:25)
Continuity mistake: In one scene on the planet, Riker's clone is lying under a table fixing something and Riker is sitting in a chair talking to him. There are two camera angles used. In one angle when the clone is talking and a body double is sitting in the chair he is facing directly towards the table but in the other camera angle where you can only see Riker, the chair is at an angle facing towards where his clone is lying on the floor.
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.