Match 5.2 debug.setupvalue(fn,1) more closely

Do equivalent of ESETV for lua_setupvalue, but
only if we identify the uv as actually being
global env.

Signed-off-by: katlogic <git@git.git>