core: For websocket, keep reqdata information for 'is_ssl' checks. When pruning for contexts, keep socket info for the is_ssl check.

(cherry picked from commit 6bd6430593728c16482fa5d826c692156545ac46)