ubusd: fix incomplete copy of shared buf during queue-ing