SERVER-6656 prevent SSL memory leaks

If a BackgroundTask should attempt to use SSL (via an outbound connection),
this commit will now ensure the SSL thread-specific data is cleaned up on
thread exit.