test lock workdir