On exact solutions for some oscillating motions of a generalized Oldroyd-B fluid