Families in a hi-rise in China were locked into their apartments as their building caught fire.