I wait every time if I can. 9/10 times if you explain the predicament to the gate agent everyone makes it work. If not there is always a small MX delay that can be taken, the code is sent IAW the FOM and you never hear a word. Truthfully, the issue becomes when some of our egomaniac captains demand/demean the agents and then the whole gig falls apart.
Sheet, I even had one say NO once to which I explained what if it had been her. Everything worked out fine.