Factor out smb_splice_chain(), to be used by chain_reply() in smbd