mark_fsmonitor_valid(): mark the index as changed if needed