REGR: ufunc with DataFrame input not passing all kwargs
- [x] closes #40662
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry

Credit to @attack68 for the fix, just figured we should try to get this is in for 1.2.4 if possible since we know the fix.
lgtm Ci failure is because of numpy dev issue Thanks @mzeitlin11 ! @meeseeksdev backport 1.2.x