Chaotic mean wind in turbulent thermal convection and long-term correlations in solar activity