Update native with ui fix.

Fixes #6584.
Introduce a memory shutdown lock.

This allows the debugger to access memory in a safe way that should never
crash.
Merge pull request #6586 from unknownbrackets/debugger

Introduce a memory shutdown lock
Hide "immersive mode" on pre-kitkat Android.
Make the axis->button mapping code make more sense
De-duplicate updates to axis mapped keys.

Improves mapping an analog stick to the same thing as a dpad, as this reduces
spurious button resets caused by analog stick noise.
Add "--release" flag to b.sh