Fix lockguard creation botched in !72750
The lockguard construction added in !72750 (merged) was not attached to a variable and thus it was releasing the lock immediately instead of keeping it for the duration of the operation. Fixed here.
The lockguard construction added in !72750 (merged) was not attached to a variable and thus it was releasing the lock immediately instead of keeping it for the duration of the operation. Fixed here.