Update detect-luajit-extensions.c

- Added C function LuajitFreeGlobalStrvar for de-allocating memory and setting global string variable to NULL.
- Projected this function as ScGlobalStrFree in Lua