Make eglReleaseThread implementation according to spec.