untested code for lockfile bug

https://github.com/truedays/virtuozzo/issues/7

added code to check for non-existence and exit early if so
added code to remove nearly empty $lockfile (ln: 80)