Other mistake: After the report that Picard is close to death, the scene shifts to a close up of La Forge's hand turning on controls. If you look closely, you can see that both panels are re-purposed CANX-23429 remote control units. The markings are for volume, radio, transmitter, receiver, phone jacks and a microphone jack.
Other mistake: When the Pakleds shoot La Forge the second time, he raises his arms a bit, seemingly in preparation to go backwards.
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.