Introduce a new API call ast_channel_search_locked, which iterates through the