rpc: fix xdr_truncate_encode to handle buffer ending on page boundary