It's weird but my car was doing the same thing about month ago. It happened in a rainy day. Dome light was blinking so I opened a driver’s door to check on a light. As soon as I closed door it locked by it self. It was getting locked repeatedly every time I was closing the door. After 5-10 min this weird thing stopped and never happened again. My car doesn't have any keyless remote installed so I would advise to look for something other than that.