The execution lock is only unlocked if it was locked in the first place.
Authored by: bugman 2011-06-29
Parent: [r13324]
Child: [r13326]