HSA: workaround a race condition that might lead to deadlock
HSA: workaround a race condition that might lead to deadlock

If there was (another) submit after the previous wait returned, but
before this reset, we miss the notification decrement and get stuck if
there are no further submits to decrement the 1.

Currently busy waits for non-AMD until a proper fix is developed.

pavanky/pocl,Oblomov/pocl,franz/pocl,jrprice/pocl,pocl/pocl,jrprice/pocl,rjodin/pocl,vkorhonen/pocl,Oblomov/pocl,franz/pocl,pavanky/pocl,pocl/pocl,jrprice/pocl,franz/pocl,vkorhonen/pocl,pavanky/pocl,pocl/pocl,rjodin/pocl,Oblomov/pocl,franz/pocl,jrprice/pocl,rjodin/pocl,rjodin/pocl,pavanky/pocl,franz/pocl,pocl/pocl,Oblomov/pocl,Oblomov/pocl,pocl/pocl,vkorhonen/pocl,vkorhonen/pocl