Ball valves for solar thermal system