lua/events.c: add #ifdef _OPENMP guard around openmp pragma