Of course transgendered people could be a risk, as could anybody else.  Ask Edward Snowdon. 

Linking sex to military security in the modern age is a huge stretch.  Blackmail is no longer particularly effective.