ENH: optimize: enable curve_fit OptimizeWarning test

Mark it as a knownfailure for now. The test fails because
assert_warns in numpy.testing should probably clean __warningregistry__...