Where the wiring passes from car to door, inside the rubber bellows, you will probably find some have chafed and touch, so the wiper signal goes to the doorlock.
Or more likely, the earth connection needs cleaning. If wiper circuit cannot earth properly, it may be finding an earth through the doorlock. I think the earth point is left side of the boot behind the trim.