I've had similar. It could well be one of the other locks sticking. If you look at each interior door handle individually as you try and lock the car you might see one is moving less/slower than the others. This one sticking causes it to keep locking and unlocking.
A bit of oil cured mine.
good luck.