[docs] [issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior