EGL/libeglcurrent: fix crash on library unload
This causes a crash in thread exit because the pthread key destructor is called, but pointed code is already unloaded and does not exist anymore
This causes a crash in thread exit because the pthread key destructor is called, but pointed code is already unloaded and does not exist anymore