In the literature nowadays there's two approaches to this. One is to avoid even considering your question, by making the handle-attachment construction one that lives purely in the smooth category (smooth manifolds and smooth manifolds with boundary allowed, but never mentioning manifolds with corners). Instead of viewing attaching a $\mu$-handle to an $n$-manifold $M$ as a gluing construction where you attach a $D^\mu \times D^\lambda$ along $S^{\mu -1} \times D^\lambda$ where $\mu + \lambda = n$.
This formalism is laid-out rather nicely in Kosinski's book Differentiable Manifolds. The idea is to take an unknotted $S^{\mu-1}$ in the boundary of a $D^n$. You can use a trivial regular (i.e. half a tubular) neighbourhood of the sphere in $D^n$ to glue the disc to your manifold $M$, provided you have a similar sphere with trivial normal bundle in $\partial M$.
But to literally answer your question about what people mean by uniqueness when you do construct a genuine manifold-with-corners, that is fairly fussy business. People try to avoid these constructions because if you use them, say, in the proof of the h-cobordism theorem, you have to worry about the order you perform multiple smoothings in, and whether or not they give you the same manifold if you do something that requires you to switch the order of smoothings. It becomes a major headache.
The statement is this. $M'$ is a smooth manifold with corners, in particular there are the two smooth inclusions $M \to M'$ and $D^\mu \times D^\lambda \to M'$. $M'$ itself is not a smooth manifold with boundary because of the singular stratum corresponding to $S^{\mu - 1} \times S^{\lambda-1}$.
A smoothing of $M'$ is a smooth manifold with boundary, let's call it $W$. $W$ is equipped with some maps:
$$i_M : M \to W$$
and
$$i_D : D^{\mu}\times D^{\lambda} \to M$$
$i_M$ has to be smooth. The key part is that if we restrict $i_D$ to either
$$D^\mu \times D^\lambda \setminus S^{\mu-1}\times S^{\lambda-1}$$
or
$$D^\mu \times S^{\lambda-1}$$
or
$$S^{\mu-1} \times D^\lambda$$
we get smooth maps, all diffeomorphisms onto their images.
We demand that $W$ is the union of the images of both $i_M$ and $i_D$, and that the images intersect along the image of your map $h$. Moreover, we demand the transition map is whichever gluing map you started with.
edit:
This concerns putting together a proof that the above data actually determines the smooth manifold $W$ uniquely up to diffeomorphism.
A standard theorem in manifold theory is that every manifold embeds in a Euclidean space of dimension $2n+1$ provided the manifold is of dimension $n$. A variant of this theorem is that up to smooth isotopy, the embedding is unique provided the Euclidean space has dimension $2n+2$ or larger.
Smooth manifolds with cubical corners are objects which are locally modelled on relatively open subsets of $[0,\infty)^n$. $[0,\infty)^n$ is called the model n-dimensional corner, let's call it $C_n$. Handle attachments are manifolds of this type. The analogue of the above theorem holds, that all n-manifolds with cubical corners embed in $C_n \times \mathbb R^{n+1}$, moreover you can demand that the embedding is "neat" in that all the strata are preserved, much like neat embeddings of manifolds with boundary. So handle attachments embed in $[0,\infty)^2 \times \mathbb R^{2n}$ provided the manifold is $n$-dimensional. The nice thing about this formalism is you have a universal space, so you can simply smooth the corners in this universal space to start, i.e. choose map $[0,\infty)^2 \to \mathbb R \times [0,\infty)$ which is a smooth diffeomorphism away from the origin, and such that the $\frac{\partial f}{\partial x}$ and $\frac{\partial f}{\partial y}$ exist and are non-zero at the origin. Uniqueness follows from showing that this map is essentially unique (provided its orientation-preserving). It's proof by universal example.