Don't update the various indexes if nothing has changed; fixed concurrency check.