Bug 1061926 - Use lock file to prevent race between idle/unidle