[sr-dev] git:3.1: tcp: fix tcp_*_destroy() bug case