TMDM-7953: "tMDMDelete can't delete all records of one entity"

Fix possible incorrect name in delete statement (missing DB-specific name length restriction).
Don't update inbound FK to null when FK is mandatory (as NOT NULL constraint exists in this case).
(https://jira.talendforge.org/browse/TMDM-7953)