shared_file_get_index(): added verbose assertion to trace idx.