libavformat/tcp: fix return code for tcp_accept