Better locking support for nested scripts.
The execution lock directly handles the locking of the nesting of scripts.
Authored by: bugman 2010-12-16
Parent: [r11843]
Child: [r11845]