LPS-40048 Remove PortletPreferencesThreadLocal for plugins
SOS-1729 Need to delete relationships from both directions