libubus: add socket EOF handling to ubus_complete_request()