lposix.c: fix lua_Alloc calls that free (they should pass the current size); fix a memory leak in msgrcv