virttest/funcatexit: Change func.__globals__ to func.func_globals, as python 2.4 do not support it.