Silence missing unlock from Coverity.
Save 'i' to 'locknum' and use that rather than using 'header->node->locknum' when performing the deferred unlock as 'header->node->locknum' can theoretically be different to 'i'.
(cherry picked from commit 8dd8d48c)