I heard of one black male pilot not getting through, purely on the grounds of not wanting to reduce the size of his massive afro!
Although he could have balanced his hat on top, there would have been issue's such as ... entering the flightdeck, getting his headset on, and of course the covering-up of the majority of the overhead pannel