The National Gallery of Australia will loan its most valuable artwork to a gallery in Western Australia, while the NGA undergoes major building works.