libubox: implement ulog_close() and call it on ulog_open()