The goalie holding onto the ball more than the allotted time is technically a handball in the box ... ref could have awarded a penalty shot instead of an indirect.
Incorrect.
The laws of the game state that the keeper’s infraction will generate a restart with an indirect kick.
Considering this referee, however, she probably could have made something up on the spot, especially since Abby Wambach had been needling her by counting “1..2..3..4..” every time the Canadian keeper picked up the ball. Wambach admitted that her team needed some kind of edge, and as such was unapologetic about the way she baited the referee into a ridiculous call.