How a lock works | ScratchStats