There is no time limit for this.
From our perspective, the ontogeny of a socially withdrawn profile begins with newborns who are biologically predisposed to have a low threshold for arousal when confronted with social or nonsocial stimulation and novelty.
Psychophysiological and behavioral evidence for varying forms and functions of nonsocial behaviors in preschoolers.