Fix another deadlock in ApiClient::SendMessage

refs #6368
Add some missing SSL flags

refs #6368