Fixed the error message in lockit() when it fails to create tmp file.