It's more thank likely an issue with the alarm and not the locking.
I had a cobra alarm in mine and it did the same thing. The alarm wasn't sending the right signal to the locks so it wasn't recognising it being locked.
I ended up just taking it out and fitting another and it solved it.