changed way that wait the sync, when running on the "SCHED_DEADLINE".