I was giving a friend some crap once, realized that among men of my generation, this is by far the commonest way of expressing affection.
Holding this idea in my head with the "boys are only mean because they like you" critique is interesting. I don't feel any hesitation ragging on my straight male buddies, but I'd never do it with my female friends, and I'm hesitant doing it with my gay male friends, who are by and large smarter and more sensitive than the straight men.