As governments fight to regulate access to materials important for many technologies, the people mining them are left behind.