fix crash in multiple voxel edit scripts running simultaneously
make pending packets thread safe
Merge pull request #1964 from ZappoMan/multiple_voxel_scripts_crash

Fixes various crashes in running multiple voxel scripts simultaneously