Fix EZP-22923: ezcontentobject_link table not cleared when a relations a...

...ttribute is deleted from a class

Link: https://jira.ez.no/browse/EZP-22923

## Description
When removing a relation list or a relation object attribute from a content class, lines were not cleared in the ezcontentobject_link table.

## Tests
Manual test and basic sanity checks