fix bug 1038777 - keep lock in /var/lock instead of /tmp