Fix 32-bit builds by correctly using intp_t instead of int64_t for numpy.searchsorted result
See discussion on #24613 

- [x] closes #24613
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
