A bushfire north of Perth has been upgraded to a watch and act warning with a possible threat to lives and homes.