sync: use WakeList in Notify and batch_semaphore
#4071
Merged
WakeList in Notify and batch_semaphore
#4071