Who Watches The Watchers - S3-E4
Visible crew/equipment: Just after Nuria says "your power is truly boundless" a few seconds later a microphone can be seen dropping and quickly being raised again at the top of the window.
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.
Yesterday's Enterprise - S3-E15
Visible crew/equipment: During the scan of the temporal rift at the beginning of the episode, the tip of the microphone briefly comes into view at the top of the screen above Captain Picard's head when Data says, "Nothing I have seen before." [Not visible in the remastered Blu-ray version].
Visible crew/equipment: While Troi tells Riker about the Captain's grueling negotiations between the Gemarians and Dachlyds, when Picard joins them on the bridge, there are three visible T-marks taped to the floor. (00:01:50)
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.