The Giant X-Ray Flare of GRB 050502B: Evidence for Late-Time Internal Engine Activity