egl: Use _eglAddAtExitCall to free thread infos and displays.