Toyota Avalone automatic car lock system

2005 Avalon–automatic car lock activates while I am driving. It may do it once or have runs of 2-8 resulting in a series of “clicks”. It happens when the car is warmed up, especially on hot days, when I am breaking and when turning to the right. It will lock after I get out of the car so I have to be certain I have removed the key such as when I get gas. I just spent $800 to have a new “computer, multiplex” put in since this is what the service people felt was the problem. Another time I had the automatic lock/alarm system (which I had put in when I bought the car second hand) deactivated. The problem continues.