A bushfire which forced locals to defend their homes with buckets of water in the City of Kalamunda has been extinguished.