There is something fishy here. This might end up as a tight spin waiting. Adding a Thread.sleep(10) would help, but it is hackish. I don't want to do a serious refactor now (using other sync mechanisms) since the future is not clear. Maybe a thread sleep with a todo?