A worker is inside an excavator that is holding up parts of a building that collapsed onto the machine at a demolition site in Sydney's Inner West.