viced: fix inverted lockCount assignment