add worker lua state memory hook and memory stat