tls: fix race between tx work scheduling and socket close (CVE-2024-26585) | HOL Guard CVE