droonga-protocol thread: fix EOF handling