Fix some really weird timeouts on some archs

Which give such traceback
'''

if not data['data']:
TypeError: string indices must be integers, not st

'''
Merge pull request #12247 from makinacorpus/race2

Fix some really weird timeouts on some archs