What happens to a plane that goes to / from an enclave when the surrounding country closes its airspace?
it would be no different than in case say China and Russia both closing their airspace for aircraft flying into and out of Mongolia. There'd be no way for aircraft to enter or leave that country.

Nothing special about being an enclave there.