If he is pecking at the base of his tail I would say shaft mites, but you said spinning in circles, more than likely its sexual frustration( if he is by himself?)
I've seen this many times where a young male would chase his sickle feathers and once he grabed one he would thread the dirt as if breeding a hen. put a pullet with him and it will stop