I wouldn’t caution the second one. It’s just a corner kick for taking too long. First one I can see—though it is more about disrespecting than the delay even if we’re written up as DR (Though I might just start counting on that—GK can scramble and look foolish if he wants. The games I do have spare balls so won’t really delay anything on the other teams CK.)
In the real world, I think the only DR caution on a GK (or TI) is after the count down when the player is delaying the other team’s CK (or TI).