The clicking is the relay that drives the door locks .... something is telling the controller to lock the doors. Either the controller itself is dodgy, or the signal from the speedo or wherever is dodgy.
If you don't need the "lock over 5mph" function, I'd suggest removing it altogether.
You can only be young once. But you can always be immature.