SERVER-129849ClosedFixed

Fix mongod shutdown hang waiting for search task executor

Fixes a `mongod` shutdown hang where idle `$search`/`$vectorSearch` cursors keep the mongot task executor alive, blocking executor teardown. Disposes idle cursors during shutdown (before the executor wait) and bounds the wait as a backstop.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10248.3.169.0.7
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
auto-revertedbkp