Homogenization of Gradient-Constrained Problems with Respect to Periodic Measures