fix #177, add a lock file for n

before the version installed, touch a file named `n.lock` in version directory, and util the version has been installed/downloaded locally, remove the file.

Then for that checking function, just check the n.lock of the corresponding version directory is existed.
/cc @tjwebb
I do? haha seems weird, I don't usually that may have been from a PR