BUG: searchsorted sorter issue with 32bit platforms (GH8490)

Closes #8490 
@jreback had to handle None, or is there a better way that `_ensure_platform_int` can handle None?