LockD: move global usage counter manipulation from error path