Make sni_handler an argument to BaseHandler.convert_to_ssl