Issue 3: Support getAndLock command.