Doesn't such policies re Homosexuality themselves create an environment that makes for the possibility of compromise that the policy seeks to prevent?
While doing Background Investigations I always thought removing the environment the fosters compromise would be the sensible way to the security apparatus to work.
After my time....we saw the US Government and particularly the Military alter its policies re Lifestyle issues.
We went from it being a "mortal sin" to be "acceptable behavior".......fortunately I left government service before it became mandatory conduct.