IndexView: Fix a race condition
The ContextAdapter could be deleted indirectly by the watcher in the middle of a function using it due to side effects of some signals.