Revealing mistake: As Data looks at the information on Dixon Hill, as the computer flash feeds, you can see that it's all the same block of information starting with the title of the first novel, which is the title of the episode, "The Big Goodbye."
Revealing mistake: When Picard looks out the window of the Dixon Hill office he sees the cars passing by each other, the traffic light is right in front of the window as if the entire building is not only in the middle of the street but only one story high.
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.