tests: convert tst-bsd-tcp1 to the boost unit test framework

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
fix shutdown()