A blast of hot weather ignited bushfires in parts of NSW, as the mercury hit 40 degrees in Sydney's west ahead of a cool change.