fix(lua): workaround memory leak problem with __cxa_thread_atexit code generated by g++

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>