add lthread_wait_read/write - undocumented for now