There is a problem of declining birthrates across many wealthy countries, but the nations where it has collapsed have one thing in common.