Fix #1605: crash when downloading friends and achievements at the same time.