Use pg_usleep() instead of plain sleep(), to fix Windows build

Per buildfarm.