locks: kill redundant local variable