Autism is diagnosed far more often in boys than girls. New research may help explain the long-standing gender gap.