I've never thanked a bike, but I do treat them like horses were treated way back when. The whole "You take care of them, they take care of you" idea.
And yeah, I've patted my bike. People pat their cars too. Refer to them by names and even gender. Nothing wrong with that.