Cache the number of favorite presets
This should prevent race conditions accessing KConfig from different threads. For the future, we should port to QSettings, that's at least thread-safe.
CCBUG:346934