Make sure SSL error queue is cleared before using SSL functions and checking for errors

See http://stackoverflow.com/questions/18179128 and https://www.arangodb.com/2014/07/08
Implemented this to fix a couple obscure errors and crashing I encountered when performing simultaneous requests on multiple devices (20+) over a large USB hub where connections would occasionally die spontaneously