Sorry, this is out of sequence but I missed it last night.
If you`re in transit....how does your luggage get anywhere near customs....???
It happens; I speak from personal experience and not from having it happen at DXB.
I was travelling home with work collegues from Rio to London via CDG; myself and two other collegues were stopped on our way to the gate in Paris and escorted through French Immigration and into a room. Our hold luggage joined us in the room within 15 minutes.
We, and all of our luggage, were searched thoroughly and then we were sent on our way. We made the connection; the bags didn't!