Fix TextureView calling eglCreateImage with a destructed buffer am: df8a0739f7 am: c7481bbeb3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12174650

Change-Id: Ia8330c8638521421c2c712337663b6e513ad8d1b