Fixing concurrency issue when applying table changes.