Giants claim former A’s right-handed pitcher off waivers