Fix a race where if parallel tasks are started and immediately paused, they may still run after the pause completes.