set lockedNext and lockedPrev on initialize