Use cURL return code to check if cURL sockets hit CURLE_AGAIN
Abstract pool_recently_got_work into a dedicated function
Merge branch 'stratum_tls' into bfgminer
Use a mutex to block pool_active on a common check per pool at any given time