No your problem is the condition inside the hook function. Just print all the ... variables and you will find out why. You don't need another surrounding frame. You just have to fix the condition. Make sure not to get into a loophole.
Lua Code:
--hook
hooksecurefunc(DurabilityFrame, "SetPoint", function(...)
local a, b, c, d, e = ...
print(a)
print(b)
print(c)
print(d)
print(e)
--DurabilityFrame:SetPoint()--make sure to only call this if needed
end)