Which lizards have you witnessed moving while mating (I presume you mean travelling, rather than just wiggling)? Is it possible that they were influenced by your presence? Varanids don't travel while mating and neither have the wild agamids I've seen here (Australia).
lizards might be doing moving of tail during mating so as to maintain the body temperature with the surrounding, Since lot of energy is used up during mating.