Made locks non-FIFO but still guarantee no starvation.