I have no problem with hugging but I really don't care - I never instigate it with males or females but have no problem returning a hug if one is incoming.
Who has the time to worry about stuff like this? I really don't get it, chances are the people you are imagining taking offense aren't analyzing the interaction at all - let alone as deeply as you are.
I'd strongly advise bosses not to hug their employees except in very rare circumstances, those interactions are much likely to be analyzed by the recipient and any observing coworkers
I'm a married male for the record.