My brother does this and we talked to his autism coordinator about it and she told us to just have rules with it and not to freak out about it. He's 4 and doesn't do it as much as he used to. He's been doing it since he was 8 months old.
Is he verbal? Many autistic children are rule bound. Can you have a rule about only in your room when alone?