As governments race to secure critical minerals, investors may have another way to diversify.