Ensure fifo ordering by tasks wrt the resource