Implemented the logic for the search feature for the `ThreadPicker` component. There is no UI for this diff due to `Search` breaking the app since the focusing/blurring of the picker component prevents input in `Search`
---
[[ https://linear.app/comm/issue/ENG-1847/implement-basic-searching-feature-for-modal | ENG-1847 ]]
Depends on D5230