Revert "[CORE] Free pending search contexts if index is closed"

This reverts commit edc48f39c5ed80c235442e9f4ba87fe1db3eb0f2.
Revert "[TEST] Add search trace logging for debugging"

This reverts commit a7b2bdca4c8779e1fca6d89db8967233e42136ec.