Substitute lock file for /usr/lib path

When checking whether the TrayIcon test is running on Linux, use the
/usr/lib path instead of checking whether the /tmp/Jane.lock file
exists. This should be more effective in producing accurate results.