tweaks to _processLock to reduce time it's locked
Merge pull request #2557 from ZappoMan/bugfixes

tweaks to _processLock to reduce time it's locked