Real affine varieties of nonnegative curvature