bpf, sockmap: fix potential use after free in bpf_tcp_close