It's the door lock actuators. There's a plastic gear inside the actuator that breaks. Unfortunately, you have to replace the entire actuator, but fortunately not the whole lock assembly. It's not too difficult to do. Mostly irritating more than anything. Onlinemazdaparts.com has them around $40 each.