What Kind of Click?
I bought new a 1987 Bounder on a Chevy P32 chassis, then turned in in for a new 2000 Bounder on a Ford V10 chassis. Obviously, both were gas-powered class A motorhomes. Both had the same entry door lock and latch set. From the outside were two locks. One, the most secure, was a deadbolt lock. The other locked the door pull handle. On the inside was a small lever to lock and unlock the door handle. Above it was a larger handle to lock or unlock the deadbolt lock. There was nothing electrical within the assembly or anything else that could produce any repetitive sound. If you have an electronic lock set with an exterior touchpad, then it may be possible that an electrical malfunction could be repetitively attempting to unlock the already unlocked door. When you pose a question, you really need to provide as much information as possible to obtain a useful answer.