It used to be like that but these days it is possible to get a security clearance while retaining the second citizenship provided there is no "conflict of interest". Whether there is a conflict of interest or not will be determined by the government investigation of course.