Fix X509Name.__getattr__ and flush_error_queue