Nine people were stuck in the Dunedin lift before emergency services could reach them