optimize ThumbIndexCache

1. use QMap instead of deque to speed up loading time
2. bug fix: auto login will reset user's kb_guid field empty