Visible crew/equipment: Data tells Maddox that he formally refuses to undergo the procedure, but he supports Maddox's intriguing ongoing work. After Maddox comments that Data is remarkable, Louvois takes note that Maddox referred to Data as "he" instead of "it," and when Louvois walks toward Picard the blue tape mark is visible on the floor where she stands. (00:43:00)
Continuity mistake: When Data bends the bar, he does so much that the sides are almost parallel with a very acute angle. When Riker puts it on the desk, it's much more curved and the sides aren't as parallel anymore.
Other mistake: After Riker turns off Data, Data slumps forward. After being in that position, and after the cut scene, Data's head twitches slightly.
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.