Automatically retry failures due to races