They look quite old, so less likely to be sabotage of a current nature. That said they are seriously savage.
I've ridden this trail hundreds of times. I can't imagine where the nails might have come from. The only recent work in this area was a rebuild of a retaining wall with rocks and sand.