fix bugs in fifo lock
one line
add races