AvatarManager is now thread safe. Default and cached avatars are handled in different lists to prevent deleting the default avatars when clearing the cache.
A cache directory with write permissions is required, however, as avatars are not cached in RAM.