modified example in README.md

clarified arguments of withLock callback