migration: Add a semaphore to count PONGs