The alarm module/sensor is in the center dome light. I'd pull that down and unplug the module. Lock the car as normal and see what happens. If it locks fine, it's likely just the module and you'll need to get a new one. Here's an
inexpensive module from the UK and a
complete panel & module from Poland.