How long before they can build themselves?
Centuries.
We have had robots in factories since the 70's putting one tiny part each on a large assembly. Getting a humanoid robot to build itself is a gargantuan task. Tasking one of these to do any kind of intricate assembly right now would see it freak out and smash everything in the room.