how to use a lockfile, haven't used it before?