Update unit flags after changing contentsum

If contentsum has changed, the linked objects no longer match.

Fixes #600

Signed-off-by: Michal Čihař <michal@cihar.com>