egl/android: fix cached buffer slots and cleanup ANativeWindow api usage
1st commit fixed a bug around implementation's buffer caching slots
2nd commit cleans up the ANativeWindow api violations
Test: No longer sees OpenGLRenderer: HOOK FAILED! Expected 4 got = 3
logged from HWUI, and checks buffer slots increase to 4 successfully upon render ahead.