The whole "if they don't accept you they aren't real friends" thing is an over simplification. Every relationship has boundaries and limits. The limits of some of your relationships may not let your share your gender identity. That doesn't make these people any less friends or comrades. They are who they are and if your want to maintain a limited relationship with them as they are there is nothing wrong with that.