The Agent Summary Report in UCCX calculates the hold time from the ACD.HoldTime table and field. This field records the hold time for all calls that are "handled" by an Agent.
Since transferred calls are considered "handled" by an agent the average hold time does take into account the amount of time they held the customer prior to transferring.