Interesting problem.
LWP is using IO::Socket::SSL as backend for https which transparently uses IPv6 if available. But, with plain http LWP is only using IPv4 (Net::HTTP isa IO::Socket::INET).
Your SSL host probably resolves to an IPv6 address so IO::Socket::SSL will use it, but then you try this address with a socks4 proxy - and the socks4 protocol can only do IPv4.