ForkEngine signals test - fixed several race conditions