You may not drive if a door lock provided by the vehicle's design doesn't work. The rule names both body doors and cab doors, so the ban applies in both cases. A faulty lock is dangerous: the door can fly open while you're moving, and a person or a load can fall out onto the road