I figured it out using a loop statement...
Will leave this posted just in case it helps someone else in the future!
var rows = xfa.resolveNodes("TableA.Row[*].Cell2");
for (var i = 0; i < rows.length; i++)
{
var lockField = rows.item(i);
lockField.access = "protected";
}