Fixed lots of pathological behavior on stringent circuit conds
HOPEFULLY this fixes the tbc-dead-but-run_client_loop-doesn't-know-it problem
Added lock around socket_table accesses to prevent race
Corrected VERY dumb mistake
TRYING TO FIX WTF