base: unwrap functables before calling debug.setenv on Lua 5.1.

* lib/std/base.lua (setfenv): Unwrap functables unconditionally,
before delegating to `debug.setfenv` or Lua 5.2 emulation.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>