Modified the execution lock to have a mode.
This allows for greater control and avoid string comparison of names to determine if a script or auto-analysis acquired the lock.
Authored by: bugman 2011-08-04
Parent: [r14156]
Child: [r14158]