Fix a bug preventing some FK constraint checking from being deferred until the end of changeset application.