Replace AndroidBitmap_lockPixels with ANativeWindow_lock