Genetic load and extinction in a metapopulation