Merge pull request #9014 from ronald-cron-arm/nofa_no_session_tickets-3.6

[Backport 3.6] Guard ticket specific TLS 1.3 function with macro