There is an online article quoting Rossi as saying his people had looked at the times for leg-dangle vs not and there was no difference.
The article also had a humorous account of how racers will do odd things because they see other racers do them.
https://motomatters.com/opinion/2009/07/22/the_truth_behind_the_rossi_leg_wave.html