Why wouldn't Barcalay pass a psychiatric exam?
If social disorders prevented you from working important jobs we wouldn't have any software engineers. His social phobias don't interfere with his job. Or rather, they did for a while in Hollow Pursuits but then he fixed the situation. The people who would fail psychiatric exams are the people with aggression problems.