BUG: DataFrame.loc/iloc fails to update object with new dtype GH24269
- [ ] closes #24269 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
