wait for locker when errno=EAGAIN