udp: properly support MSG_PEEK with truncated buffers