If that's the case, then it would be the heat sinking ability or thermal mass of the socket the bulb is screwed into that would conduct the heat and dissipate it away. Air trapped in the fixture would have little effect unless the socket had heat sink fins.
-Hal
But light sockets in luminaires and other light fixtures are not generally designed to serve as heat sinks. They used to be designed to withstand the temperatures of incandescent bulb bases, not to conduct heat away.
By their very nature, incandescent bulbs had no components that could be adversely affected by temperatures as high as 100C. No consumer electronics components which are affordable for use in LED bulbs can withstand that sort of temperature.
And the heat rejection of the electronic ballast circuitry typically located in the base of an LED bulb is generally dependent on air circulation, and surrounding air temperatures reasonably close to ambient temperatures. In an enclosed fixture you might have neither.