OS-2547 VM.js should protect writes to configuration files with a lockfile
Reviewed by: Josh Wilsdon <jwilsdon@joyent.com>