Add CompatUtility::GetModifiedAttributesList() for Livestatus.

Fixes #6042