CSettings: hold lock when iterating over subsettings
don't hold lock when iterating over setting callbacks