Rationalise and simplify the share diff and block solve detection to a common site.
Avoid curl_easy_cleanup on old curl versions in setup_stratum_curl as well.