lock_ref_sha1_basic(): remove unneeded local variable