groonga-httpd: implement wait_until_XXX without timeout command

Because timeout command is not portable. For example, CentOS 5 doesn't
install it by default.