Bugfix: On stratum disconnect, clear stratum_active and stratum_notify atomically along with sock

Fixes a crash when stratum_write attempts to FD_SET a -1 fd
Merge commit '69813a7' into bfgminer