Tests: fix TestShutdownTCP race using NotifyStartedFunc
Merge pull request #160 from FiloSottile/fix_tcp_test_race

Tests: fix TestShutdownTCP race using NotifyStartedFunc