ENH: optimize: curve_fit now warns if pcov is undetermined

Mark this as knownfailure with an error message explaining that "fails because assert_warn does not clear __warningregistry__"