Have a Car Question? Ask a Mechanic Online.
Hello and welcome to JustAnswer!
This could be a body control module, wiring or relay problem but most likely it is being caused by a bad disarm switch.
On the back of the lock cylinders on the front doors and liftgate there is a microswitch that is wired to the BCM. When you lock or unlock a door with the key it will arm and disarm factory security but it is also used for central locking functions.
It isn't uncommon for these switches to start sending signals when you aren't actually turning the key, often result of moisture intrusion in the switch. What I would recommend is unplugging these switches one at a time and see if the problem goes away, if so then you've found the bad switch.