fix race condition between vm test compilation and isolate spawning (#1517)

Fixes #1516
5 files changed