[lib] Replace threadSearchIndex selector with useGlobalThreadSearchIndex hook
Summary: Depends on D6477
Test Plan:
There were six surfaces affected by this change:
- ThreadPickerModal on native
- ThreadPickerModal on web
- ChatThreadList on native
- ThreadListProvider on web (surfaced through ChatThreadList)
- SidebarsModal on web
- SubchannelsModal on web
I tested all of them:
Reviewers: atul
Reviewed By: atul
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D6478