Kyle Bartley fired Birmingham's extra-time winner as the Sky Bet Championship side eventually fended off League Two outfit Plymouth 3-2.