Change the format of qlfile.lock.
Don't allow .lock file to use directory for installation/updating.
Use the new format lock file if it exists.
Fix tests.