ck_swlock: Fix latch operation.